import React, { Component } from 'react';
import { connect } from 'react-redux';
import './index.less';
class Tips extends Component {
  render() {
    let message = this.props.tipmessage;
    // console.log(message)
    if (message === 'loading') {
      return (
        <div>
          <div className="loading" />
        </div>
      );
    } else {
      return (
        <div>
          <div className="block" />
        </div>
      );
    }
  }
}

export default connect(state => {
  return { ...state };
})(Tips);
